﻿CREATE PROCEDURE [dbo].[sp_ssiscatalog]
	@exec_id									BIGINT			=	NULL	
,	@action										NVARCHAR(MAX)	=	NULL	/*Default value will come from deprecated parameter @operation_type*/
,	@exec_execution								BIT				=	1		
,	@exec_events								BIT				=	1		
,	@exec_errors								BIT				=	1		
,	@exec_warnings								BIT				=	1		
,	@exec_executable_stats						BIT				=	1		
,	@exec_events_packagesexcluded				NVARCHAR(MAX)	=	NULL	
,	@execs_folder_name							sysname			=	NULL
,	@execs_project_name							sysname			=	NULL
,	@execs_package_name							sysname			=	NULL
,	@execs_executed_as_name						sysname			=	NULL
,	@execs_status_desc							NVARCHAR(MAX)	=	NULL
,	@execs_minimum_execution_id					BIGINT			=	NULL
,	@execs_maximum_execution_id					BIGINT			=	NULL
,	@configure_collect_usage_stats				BIT				=	NULL
,	@show_docs									BIT				=	1		/*Display documentation for the selected @action*/
,	@show_docs_only								BIT				=	0		/*Only display documentation, don't do anything else*/
,	@a											NVARCHAR(MAX)	=	NULL	/*Short form for @action*/
,	@operation_type								NVARCHAR(MAX)	=	N'exec'	
,	@ot											NVARCHAR(MAX)	=	NULL	/*Short form for @operation_type*/
AS
BEGIN
		SET NOCOUNT ON;
		BEGIN TRY
				EXEC	[dbo].[usp_ssiscatalog]
							@exec_id						=	@exec_id						
						,	@action							=	@action							
						,	@exec_execution					=	@exec_execution					
						,	@exec_events					=	@exec_events					
						,	@exec_errors					=	@exec_errors					
						,	@exec_warnings					=	@exec_warnings					
						,	@exec_executable_stats			=	@exec_executable_stats			
						,	@exec_events_packagesexcluded	=	@exec_events_packagesexcluded	
						,	@execs_folder_name				=	@execs_folder_name				
						,	@execs_project_name				=	@execs_project_name				
						,	@execs_package_name				=	@execs_package_name				
						,	@execs_executed_as_name			=	@execs_executed_as_name			
						,	@execs_status_desc				=	@execs_status_desc				
						,	@execs_minimum_execution_id		=	@execs_minimum_execution_id		
						,	@execs_maximum_execution_id		=	@execs_maximum_execution_id		
						,	@configure_collect_usage_stats	=	@configure_collect_usage_stats	
						,	@show_docs						=	@show_docs						
						,	@show_docs_only					=	@show_docs_only					
						,	@a								=	@a								
						,	@operation_type					=	@operation_type					
						,	@ot								=	@ot								
				;
		END TRY
		BEGIN CATCH
				THROW;
		END CATCH

END
